package com.bjpowernode;

import com.bjpowernode.ba04.SomeService4;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest04 {
    @Test
    public void test01(){
        String configure="ba04/applicationContext.xml";
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext(configure);

        SomeService4 proxy=(SomeService4) applicationContext.getBean("service");

        proxy.doSecond();
    }
}
